<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>欢迎登录,<span>xxxxxx</span></h1>
  </body>
  <script>
    // const username=location.search.split('=')[1]
    // document.querySelector('span').innerText=username;
    const name=document.cookie;
    // console.log(name);
    document.querySelector('span').innerText =name.split('=')[1];
    


  </script>
</html>
